home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 4_misc / history < prev    next >
Text File  |  2001-03-21  |  2KB  |  40 lines

  1. Synopsis:
  2.    history [<number>]
  3.    ! [<history number|history match>]
  4.  
  5. Description:
  6.    Command history is a useful little feature that allows you to
  7.    quickly recall commands previously executed.  The conventions
  8.    followed are similar to those of the GNU bash or Cornell's tcsh Unix
  9.    command shells.  There are two versions of this command, one which
  10.    just lists out the command history, and another which actually
  11.    recalls a specific command for use on the input line.
  12.  
  13.    The HISTORY command is the simple version.  All it does is spit out
  14.    a list of commands you've previously entered (the exact number is
  15.    determined by your HISTORY setting).  You can limit the number of
  16.    items to list, or just list all of them.  Each item is assigned a
  17.    unique index number, which can be referred to by !.  This list can
  18.    be saved for later use, if you have HISTORY_FILE set to something.
  19.  
  20.    The more complex version is the ! command.  Based on the input you
  21.    give it, it searches through your command history list and finds the
  22.    first item that matches your query and puts it on the input line for
  23.    immediate use.  You can search based on a partial string (such as a
  24.    command name, so search for the last use of it), or an index number.
  25.  
  26. Examples:
  27.    To list the 50 most recent items in your command history:
  28.       /history 50
  29.  
  30.    To find the most recent use of the MSG command:
  31.       /!/msg
  32.  
  33.    To use item 37 in your command history:
  34.       /!37
  35.  
  36. See Also:
  37.    bind(4) forward_history, backward_history, shove_to_history; set(4)
  38.    history, history_file
  39.  
  40.